package com.maykk.Demo07;

public class Person {
    private String name;
    private int age;
    private String sex;

    private void methodPri() {
        System.out.println("我是私有成员方法~");
    }
    public void methodPub() {
        System.out.println("我是公有成员方法，下面调用的是私有成员方法~");
        methodPri();
    }
}
